package top.tagao.m01_structuralPatterns.s_01_proxyDesign.proxy_01_static;

/**
 * @author fu-xiao-liu
 * @Date 2022/3/26 17:13
 */
public class ProxyStaticMode {
    public static void main(String[] args) {
        //1.创建被代理类
        NikeClothFactory clothFactory = new NikeClothFactory();
        //2.创建代理类
        ProxyClothFactory proxyClothFactory = new ProxyClothFactory(clothFactory);

        //3.通过被代理类执行代理类的方法
        proxyClothFactory.produceCloth();
    }
}
